package com.senven.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author wt
 * @Date 2022/8/29 17:40
 * @PackageName:com.senven.common.entity
 * @ClassName: Branch
 * @Description: TODO
 * @Version 1.0
 */
@ApiModel(value = "Goods对象", description = "")
@TableName("branch")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Branch {
    @TableId(value = "branchid",type = IdType.AUTO)
    private Integer branchid;
    private String branchname;
    private String address;
    private String tel;
    private String describle;
    @TableField("branch_url")
    private String branchUrl;
    private String userid;

    private String status;

    @TableField(exist = false)
    private List<ShoppingTrolley> goods;

    @TableField(exist = false)
    private List<PayOrder> pds;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String realname;

    @TableField(exist = false)
    private Integer num;
}
